//
//  NewsCell.m
//  DayDay
//
//  Created by wade on 17/2/6.
//  Copyright © 2017年 wade. All rights reserved.
//

#import "NewsCell.h"
#import "UIImageView+WebCache.h"

@implementation NewsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setNewsCell:(NSDictionary *)dic
{
    [self.imgView sd_setImageWithURL:[dic objectForKey:@"urlToImage"] placeholderImage:nil];
    
    self.titleLab.text = [dic objectForKey:@"title"];
    
    self.descLab.text = [dic objectForKey:@"description"];
    
}

@end
